package com.yami.shop.webservice.common.service;

import cn.hutool.extra.mail.MailException;
import com.alibaba.fastjson.JSONObject;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * 交收卡增发记录Service接口
 *
 * @author zhangchaoqun
 * @date 2021-10-13
 */
public interface WapiUserService
{
    /**
     * 获取验证码
     * @param token
     * @return
     * @throws MailException
     */
    public Map<String,Object> getLoginImg(String token) throws MailException;

    /**
     * 登录
     * @param token
     * @return
     * @throws MailException
     */
    public Map<String,Object> wapiLogin(String userId, String pwdCode, String token, String checkCode , HttpServletRequest request) throws MailException;

    /**
     * 登录
     * @param token
     * @return
     * @throws MailException
     */
    public Map<String,Object> wapiLoginAndSave(String ourUserId,String idNumber,String userAccount, String pwdCode, String token, String checkCode , HttpServletRequest request) throws MailException;

    /**
   * 获取会员信息
   * @param idNumber
   * @return
   * @throws MailException
   */
    public Map<String,Object> getWapiUserIdByCardId(String idNumber) throws MailException;


    /**
     * 获取证件号和状态
     * @param userId
     * @return
     * @throws MailException
     */
    public Map<String,Object> getWapiCardIdByUserId(String userId) throws MailException;
    /**
     * 证支付密码
     * @param userId
     * @return
     * @throws MailException
     */
    public Boolean checkPayPosswordByUserIdAndPwd(String userId,String pwd) throws MailException;

    /**
     * 获取账户
     * @param userId
     * @return
     * @throws MailException
     */
    public String getAccountByUserIdAndMall(String userId) throws MailException;


    /**
     * 发短信
     * @param phone
     * @return
     * @throws MailException
     */
    public void sendsms(String phone) throws MailException;

    /**
     * 上传
     * @param map
     * @return
     * @throws MailException
     */
    public String updataImg(Map<String, String> map) throws MailException;

    /**
     * 获取服务商code
     * @param phone
     * @return
     * @throws MailException
     */
    public String getServiceUser(String phone) throws MailException;

    /**
     *
     * @param password
     * @param account
     * @param regChkCode
     * @param cellPhone
     * @param imgAttach2
     * @param imgAttach7
     * @throws MailException
     */
    public void wapiRegister(String password,String account, String regChkCode, String cellPhone,String imgAttach2,String imgAttach7 ,String userId) throws MailException;

}
